package com.fwj.interfaceexample;

/**
 * @author stone.feng
 * @since 2019-02-27
 */
public class InitOrderTest {

    public static String staticField = "静态变量";

    public String field = "变量";

    /** 解释  */

    static {
        System.out.println(staticField);
        System.out.println("静态初始化块");
    }

    /** 解释 */ {
        System.out.println(field);
        System.out.println("初始化块");
    }

    public InitOrderTest() {
        System.out.println("构造器");
    }

    public static void main(String[] args) {
        new InitOrderTest();
    }
}
